package erp.education.server.beans.implementation.erp.project;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Component;

import erp.education.client.erp.project.ModuleRequest;
import erp.education.server.beans.implementation.BaseService;
import erp.education.server.beans.implementation.ResultResponse;
import erp.education.server.beans.implementation.ServiceObject;
import erp.education.server.beans.interfaces.erp.project.ModuleServiceI;
import erp.education.server.beans.interfaces.user.transaction.ServiceObjectI;
import erp.education.server.db.exceptions.DbExceptions;
@Component("moduleService")
public class ModuleService extends BaseService implements ModuleServiceI {

	@Override
	public ServiceObjectI moduleOnloadService(ModuleRequest moduleRequest) throws DbExceptions {
		ServiceObjectI response=new ServiceObject();
		ResultResponse holder=new ResultResponse();
		 List result=new ArrayList();
		result.add(moduleDao.getModules());
		holder.setResultList(result);
		response.setResponseObject(holder); 
		return response;
	}

	 
}
